package com.luo;

public class lsx {
    public static void main(String[] args) {
        int i,j,k,n=5;
        for(i=1;i<n;i++)
        {
            for(j=1;j<n/2-1;j++)
            {
                System.out.printf(" ");
            }
            for (k=1;k<2*i-1;k++)
            {
                System.out.printf("*");
            }
            System.out.printf("\n");
        }
        for(i=1;i<n-1;i++)
        {
            for(j=1;j<i+1;j--)
            {
                System.out.printf(" ");
            }
            for (k=1;k<2*n-1;k++)
            {
                System.out.printf("*");
            }
            System.out.printf("\n");
        }
    }
}